package com.shop.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.coupon.domain.CouponHistory;
import com.shop.coupon.domain.vo.CouponHistoryVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponHistoryVoMapper extends BaseMapper<CouponHistoryVo> {

    //查看未使用的优惠券
    List<CouponHistoryVo> couponUserSelect(@Param("memberId") Long memberId);
    //已使用的优惠券
    List<CouponHistoryVo> couponUserSelectUse(@Param("memberId") Long memberId);
    //已过期的优惠券
    List<CouponHistoryVo> couponUserSelectExpired(@Param("memberId") Long memberId);
}
